export default {


	get(url, data) {
		return new Promise((resolve, reject) => {
			uni.request({
				method: 'POST',
				url,
				data,
				success: res => {
					resolve(res);
				},
				fail: err => {
					resolve(err);
				}
			})
		})
	},
	post(url, data) {
		return new Promise((resolve, reject) => {
			uni.request({
				method: 'POST',
				url,
				data,
				success: res => {
					resolve(res);
				},
				fail: err => {
					resolve(err);
				}
			})
		})
	}


}
